package com.idlecode.bean;

import java.util.Date;
import java.util.List;

/**
 * 数据表
 */
public class TableEntity {
    private Long id;
    /**
     * 表名
     */
    private String tableName;
    /**
     * 实体类名称
     */
    private String className;
    /**
     * 功能名
     */
    private String tableComment;
    /**
     * 项目包名
     */
    private String packageName;
    /**
     * 项目版本号
     */
    private String version;
    /**
     * 作者
     */
    private String author;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 后端生成路径
     */
    private String backendPath;
    /**
     * 模块名
     */
    private String moduleName;
    /**
     * 功能名
     */
    private String functionName;
    /**
     * 生成方式  1：zip压缩包   2：自定义目录
     */
    private Integer generatorType;
    /**
     * 数据源ID
     */
    private String datasourceId;
    /**
     * 基类ID
     */
    private Long baseclassId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private String updateTime;
    /**
     * 字段列表
     */
    private List<TableFieldEntity> fieldList;
    /**
     * 代码基础路径
     */
    private String codeBasePath;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTableComment() {
        return tableComment;
    }

    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getBackendPath() {
        return backendPath;
    }

    public void setBackendPath(String backendPath) {
        this.backendPath = backendPath;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public String getDatasourceId() {
        return datasourceId;
    }

    public void setDatasourceId(String datasourceId) {
        this.datasourceId = datasourceId;
    }

    public Long getBaseclassId() {
        return baseclassId;
    }

    public void setBaseclassId(Long baseclassId) {
        this.baseclassId = baseclassId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public List<TableFieldEntity> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<TableFieldEntity> fieldList) {
        this.fieldList = fieldList;
    }

    public Integer getGeneratorType() {
        return generatorType;
    }

    public void setGeneratorType(Integer generatorType) {
        this.generatorType = generatorType;
    }

    public String getCodeBasePath() {
        return codeBasePath;
    }

    public void setCodeBasePath(String codeBasePath) {
        this.codeBasePath = codeBasePath;
    }

    @Override
    public String toString() {
        return "TableEntity{" +
                "id=" + id +
                ", tableName='" + tableName + '\'' +
                ", className='" + className + '\'' +
                ", tableComment='" + tableComment + '\'' +
                ", packageName='" + packageName + '\'' +
                ", version='" + version + '\'' +
                ", author='" + author + '\'' +
                ", email='" + email + '\'' +
                ", backendPath='" + backendPath + '\'' +
                ", moduleName='" + moduleName + '\'' +
                ", functionName='" + functionName + '\'' +
                ", generatorType=" + generatorType +
                ", datasourceId='" + datasourceId + '\'' +
                ", baseclassId=" + baseclassId +
                ", createTime=" + createTime +
                ", updateTime='" + updateTime + '\'' +
                ", fieldList=" + fieldList +
                '}';
    }
}
